package Json.search;


import java.util.List;

/**
 * Copyright (c) 2019 Beeboxes, Inc.
 * Author(s): zhangyingjie (zhangyingjie@beeboxes.com)
 * data :2019/6/3
 *
 * @Function: 持久化存储 类 设置搜索信息。
 */
public class SearchBean {
    public static final int MENU_TYPE_ACTITITY = 1;
    public static final int MENU_TYPE_ITEM = 2;
    private String name;
    private int menuOrder;//2位数 顺序 同一大类里顺序一致。00start
    private int level;//2位数 01start
    private int currentMenuLevelOrder;//2位数 当前menuOrder 当前 level 中的顺序 没有就是 00start
    private int menuType;//类别 是 item or activity  activity 1 item 2
    private String parentName;//父亲节点名字
    private String intentPath;//跳转的activity名字
    private String allPathName;//完整路径名字
    private SearchBean parentNode;//父亲节点。如果是根节点那么是他自己。
    private String iconName;//图标的name 不包含jpg
    private List<SearchBean> mSonList;


    public int getCurrentMenuLevelOrder() {
        return currentMenuLevelOrder;
    }

    public void setCurrentMenuLevelOrder(int currentMenuLevelOrder) {
        this.currentMenuLevelOrder = currentMenuLevelOrder;
    }

    public String getAllPathName() {
        return allPathName;
    }

    public void setAllPathName(String allPathName) {
        this.allPathName = allPathName;
    }

    public String getIntentPath() {
        return intentPath;
    }

    public void setIntentPath(String intentPath) {
        this.intentPath = intentPath;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public SearchBean getParentNode() {
        return parentNode;
    }

    public void setParentNode(SearchBean parentNode) {
        this.parentNode = parentNode;
    }

    public String getIconName() {
        return iconName;
    }

    public int getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(int menuOrder) {
        this.menuOrder = menuOrder;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getMenuType() {
        return menuType;
    }

    public void setMenuType(int menuType) {
        this.menuType = menuType;
    }


    public void setIconName(String iconName) {
        this.iconName = iconName;
    }

    public List<SearchBean> getmSonList() {
        return mSonList;
    }

    public void setmSonList(List<SearchBean> mSonList) {
        this.mSonList = mSonList;
    }

    @Override
    public String toString() {
        return "SearchBean{" +
                ", name='" + name + '\'' +
                ", menuOrder=" + menuOrder +
                ", level=" + level +
                ", currentMenuLevelOrder=" + currentMenuLevelOrder +
                ", menuType=" + menuType +
                ", parentName='" + parentName + '\'' +
                ", intentPath='" + intentPath + '\'' +
                ", allPathName='" + allPathName + '\'' +
                ", parentNode=" + parentNode +
                ", iconName='" + iconName + '\'' +
//                ", mSonList=" + mSonList +
                '}';
    }
}
